package com.JZ.QM.common.dao;

import com.JZ.QM.common.entity.TradeLDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/4 17:27
 */
@Mapper
public interface TradeDetailDao {

    /**
     * 获取产品的存款交易信息
     * @param tradeId 交易记录id
     * @param userId 用户id
     * @return
     */
    ArrayList<TradeLDetailEntity> getTradeAccountDetailLists(@Param("tradeId")Long tradeId, @Param("userId")Long userId);

    /**
     * 获取银行存款交易信息
     * @param tradeId 交易记录id
     * @param userId 用户id
     * @return
     */
    ArrayList<TradeLDetailEntity> getTradeAccountDetailListOfBank(@Param("tradeId")Long tradeId, @Param("userId")Long userId);
}
